//
//  GYCategoryPickerView.h
//  GYDemo
//
//  Created by Mrzhang on 2018/3/28.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "BRAddressPickerView.h"


@interface FirstCategoryModel : BRProvinceModel

@property(nonatomic,strong)NSDictionary* dataSource;
@end

@interface SecondCategoryModel : BRCityModel

@property(nonatomic,strong)NSDictionary* dataSource;
@end

@interface ThirdCategoryModel : BRAreaModel

@property(nonatomic,strong)NSDictionary* dataSource;
@end


typedef void(^GYCategoryResultBlock)(FirstCategoryModel *province, SecondCategoryModel *city, ThirdCategoryModel *area);

@interface GYCategoryPickerView : BRAddressPickerView
+ (void)showAddressPickerWithShowType:(BRAddressPickerMode)showType
                           dataSource:(NSArray *)dataSource
                      defaultSelected:(NSArray *)defaultSelectedArr
                         isAutoSelect:(BOOL)isAutoSelect
                           themeColor:(UIColor *)themeColor
                          resultBlock:(GYCategoryResultBlock)resultBlock
                          cancelBlock:(BRAddressCancelBlock)cancelBlock;
@end
